projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73b0901
)
Respect value of frame_resize_pixelwise when handling fullscreen state.
author
Anders Lindgren
<andlind@gmail.com>
Mon, 28 Sep 2015 06:11:14 +0000
(08:11 +0200)
committer
Martin Rudalics
<rudalics@gmx.at>
Mon, 28 Sep 2015 06:11:14 +0000
(08:11 +0200)
* src/nsterm.m (handleFS): Respect frame_resize_pixelwise when
setting size increments.
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index a5bf06a70aff10b964932d14bb496c82845e83b5..65d07b2f1e46a8622fcca4ddabda3fb05162996a 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-6724,6
+6724,11
@@
if (cols > 0 && rows > 0)
{
if (fs_state != emacsframe->want_fullscreen)
{
+ NSSize sz;
+ sz.width = frame_resize_pixelwise ? 1 : FRAME_COLUMN_WIDTH (emacsframe);
+ sz.height = frame_resize_pixelwise ? 1 : FRAME_LINE_HEIGHT (emacsframe);
+ [[self window] setResizeIncrements:sz];
+
if (fs_state == FULLSCREEN_BOTH)
{
[self toggleFullScreen:self];